package pl.un4giv3n.mightvsmagic.utils.display;

import org.displaytag.decorator.TableDecorator;

import pl.un4giv3n.mightvsmagic.entity.ClanWar;
import pl.un4giv3n.mightvsmagic.utils.ClanUtil;

public class ClanWarDecorator extends TableDecorator {

	
	public String getBattlesWon(){
		StringBuilder sb = new StringBuilder();
		ClanWar war = (ClanWar) getCurrentRowObject();
		sb.append(war.getAttackerName()).append(" ").append(ClanUtil.getAttackerWins(war));
		sb.append(" : ").append(ClanUtil.getDefenderWins(war)).append(" ").append(war.getDefenderName());
		return sb.toString();
	}
}
